﻿#ifndef DIALOG_ADDPROXY_H
#define DIALOG_ADDPROXY_H

#include <QDialog>

namespace Ui {
class Dialog_AddProxy;
}

class Dialog_AddProxy : public QDialog
{
    Q_OBJECT
public:
    std::function<void(QString name,bool isTcp,uint16_t serverPort,uint16_t localProxy,bool persistent)> addProxyFunction = nullptr;

public:
    explicit Dialog_AddProxy(QWidget *parent = nullptr,std::function<void(QString name,bool isTcp,uint16_t serverPort,uint16_t localProxy,bool persistent)> addProxy = nullptr);
    ~Dialog_AddProxy();

private slots:
    void on_pushButton_add_clicked();
    void on_pushButton_cancel_clicked();



    void on_lineEdit_serverPort_textEdited(const QString &arg1);

    void on_lineEdit_localPort_textEdited(const QString &arg1);

private:
    Ui::Dialog_AddProxy *ui;




};

#endif // DIALOG_ADDPROXY_H
